import numpy as np
import matplotlib.pyplot as plt
import cv2

d = 400
img = np.ones((d, d, 3), dtype="uint8") * 255
(centerX, centerY) = (round(img.shape[1]) / 2.0), round(img.shape[0] / 2.0)
#将图像的中心作为圆心，实际值为d/2
red = (0, 0, 255)  #设置白色变量
for r in range(5, round(d / 2), 12):
    cv2.circle(img, (int(centerX), centerY), r, red, 3)
    #circle(载体图像，圆心，半径，颜色)
plt.figure('Demo16.6')
plt.imshow( img)
plt.axis('off')
plt.title("Demo16.6")
plt.show()
